package chongxin;

public class Pet1 {
    public String name;
    public String sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void print1( String name, String sex) {
        String type=name;
        String num=sex;
        System.out.println("姓名是:"+type+"性别为:"+sex);

    }
}
